import { shuffle } from 'lodash-es'

export const COLOR_LIST = [
  { text: '红', color: 'red' },
  { text: '橙', color: 'orange' },
  { text: '黄', color: 'yellow' },
  { text: '绿', color: 'green' },
  { text: '青', color: '#00ffff' },
  { text: '蓝', color: 'blue' },
  { text: '紫', color: 'purple' }
]

export function genPairs() {
  return shuffle(COLOR_LIST).slice(0, 2)
}
